package com.jeesite.modules.dp.entity.kecheng;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import javax.validation.constraints.NotNull;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * 课程管理Entity
 * @author hancing
 * @version 2024-12-02
 */
@Table(name="dp_kecheng", alias="a", label="课程信息", columns={
		@Column(name="id", attrName="id", label="id", isPK=true),
		@Column(name="kctype", attrName="kctype", label="分类"),
		@Column(name="typename", attrName="typename", label="分类名称"),
		@Column(name="kctitle", attrName="kctitle", label="标题"),
		@Column(name="kcimg", attrName="kcimg", label="kcimg"),
		@Column(name="kcjianjie", attrName="kcjianjie", label="kcjianjie"),
		@Column(name="dengji", attrName="dengji", label="星级", isUpdateForce=true),
		@Column(name="tags", attrName="tags", label="标签"),
		@Column(name="basesell", attrName="basesell", label="售出基数"),
		@Column(name="price", attrName="price", label="价格", isUpdateForce=true),
		@Column(name="realsell", attrName="realsell", label="真实销量"),
		@Column(name="kcdetail", attrName="kcdetail", label="课程详情"),
		@Column(name="kcstatus", attrName="kcstatus", label="课程状态"),
		@Column(name="baiduurl", attrName="baiduurl", label="下载地址"),
		
		@Column(includeEntity=DataEntity.class),
	}, orderBy="a.update_date DESC"
)
public class DpKecheng extends DataEntity<DpKecheng> {
	
	private static final long serialVersionUID = 1L;
	private String kctype;		// 分类
	private String typename;		// 分类名称
	private String kctitle;		// 标题
	private String kcimg;		// kcimg
	private String kcjianjie;		// kcjianjie
	private Integer dengji;		// 星级
	private String tags;		// 标签
	private Long basesell;		// 售出基数
	private Double price;		// 价格
	private Long realsell;		// 真实销量
	private String kcdetail;		// 课程详情
	private String kcstatus;		// 课程状态
	private String baiduurl;		// 下载地址

	
	private String onlyself;
	private String uno;
	private String ukccode;
	public DpKecheng() {
		this(null);
	}
	
	public DpKecheng(String id){
		super(id);
	}
	
	@NotBlank(message="分类不能为空")
	@Size(min=0, max=255, message="分类长度不能超过 255 个字符")
	public String getKctype() {
		return kctype;
	}

	public void setKctype(String kctype) {
		this.kctype = kctype;
	}
	
	@NotBlank(message="分类名称不能为空")
	@Size(min=0, max=255, message="分类名称长度不能超过 255 个字符")
	public String getTypename() {
		return typename;
	}

	public void setTypename(String typename) {
		this.typename = typename;
	}
	
	@Size(min=0, max=255, message="标题长度不能超过 255 个字符")
	public String getKctitle() {
		return kctitle;
	}

	public void setKctitle(String kctitle) {
		this.kctitle = kctitle;
	}
	
	
	public String getKcimg() {
		return kcimg;
	}

	public void setKcimg(String kcimg) {
		this.kcimg = kcimg;
	}
	
	@Size(min=0, max=500, message="kcjianjie长度不能超过 500 个字符")
	public String getKcjianjie() {
		return kcjianjie;
	}

	public void setKcjianjie(String kcjianjie) {
		this.kcjianjie = kcjianjie;
	}
	
	
	
	public Integer getDengji() {
		return dengji;
	}

	public void setDengji(Integer dengji) {
		this.dengji = dengji;
	}

	@Size(min=0, max=255, message="标签长度不能超过 255 个字符")
	public String getTags() {
		return tags;
	}

	public void setTags(String tags) {
		this.tags = tags;
	}
	
	@NotNull(message="售出基数不能为空")
	public Long getBasesell() {
		return basesell;
	}

	public void setBasesell(Long basesell) {
		this.basesell = basesell;
	}
	
	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}
	
	
	public Long getRealsell() {
		return realsell;
	}

	public void setRealsell(Long realsell) {
		this.realsell = realsell;
	}
	
	public String getKcdetail() {
		return kcdetail;
	}

	public void setKcdetail(String kcdetail) {
		this.kcdetail = kcdetail;
	}
	
	@NotBlank(message="课程状态不能为空")
	@Size(min=0, max=1, message="课程状态长度不能超过 1 个字符")
	public String getKcstatus() {
		return kcstatus;
	}

	public void setKcstatus(String kcstatus) {
		this.kcstatus = kcstatus;
	}
	
	@NotBlank(message="下载地址不能为空")
	@Size(min=0, max=500, message="下载地址长度不能超过 500 个字符")
	public String getBaiduurl() {
		return baiduurl;
	}

	public void setBaiduurl(String baiduurl) {
		this.baiduurl = baiduurl;
	}

	public String getOnlyself() {
		return onlyself;
	}

	public void setOnlyself(String onlyself) {
		this.onlyself = onlyself;
	}

	public String getUno() {
		return uno;
	}

	public void setUno(String uno) {
		this.uno = uno;
	}

	public String getUkccode() {
		return ukccode;
	}

	public void setUkccode(String ukccode) {
		this.ukccode = ukccode;
	}
	
}